package com.java.basis.io.stream.inputoroutstream;

import java.io.FileInputStream;
import java.util.Arrays;

/**
 * @author wangning
 * @create 2021-06-11 15:33
 * 批量循环读取标准格式
 *
 */
public class Test02 {
	public static void main(String[] args) throws Exception {
		FileInputStream in = new FileInputStream("F:/jt/file/testinputstream.txt");
		byte[] buff = new byte[5];
		int n;
		while ((n=in.read(buff)) != -1) {
			System.out.println(n+"个： "+ Arrays.toString(buff));
		}
		in.close();
	}
}
